package ast;

public class BooleanConstant implements Expression {

	private boolean value;

	public BooleanConstant(String text) {
		value = Character.toLowerCase(text.charAt(1)) == 't';
	}

	public boolean getValue() {
		return value;
	}

	@Override
	public void accept(Visitor visitor) {
		visitor.visitBooleanConstant(this);
	}

}
